From 9846cf3e4c1f1e70d0e4e5e19821ec1bf6e43799 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Sat, 2 Dec 2023 22:08:04 -0500 Subject: [PATCH] Some linting and further documenting --- README.md | 5 +++++ src/libs/endorserServer.ts | 4 ++-- src/views/ContactsView.vue | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 33acf90..5bc6b63 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,11 @@ If you are deploying in a subdirectory, add it to `publicPath` in vue.config.js, npm run build ``` +``` +npx prettier --write ./sw_scripts/ +``` +to make sure the service worker scripts are in proper form + ... then copy the contents of the `sw_scripts` folder to the `dist` folder - except additional_scripts.js. diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 8db51eb..64454e2 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -157,8 +157,8 @@ export function didInfo( return contact ? contact.name || "Contact With No Name" : isHiddenDid(did) - ? "Someone Not In Network" - : "Someone Not In Contacts"; + ? "Someone Not In Network" + : "Someone Not In Contacts"; } export interface ResultWithType { diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index c7ca1df..116ec68 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -67,8 +67,8 @@ showGiveTotals ? "Total" : showGiveConfirmed - ? "Confirmed" - : "Unconfirmed" + ? "Confirmed" + : "Unconfirmed" }}