We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3080c8f commit a8942cdCopy full SHA for a8942cd
web/src/pages/Cases/CaseDetails/Voting/Shutter/Commit.tsx
@@ -85,6 +85,10 @@ const Commit: React.FC<ICommit> = ({
85
86
const handleCommit = useCallback(
87
async (choice: bigint) => {
88
+ if (!import.meta.env.REACT_APP_SHUTTER_API) {
89
+ console.error("REACT_APP_SHUTTER_API environment variable is not set");
90
+ throw new Error("Cannot commit vote: REACT_APP_SHUTTER_API environment variable is required but not set");
91
+ }
92
const message = { message: saltKey };
93
const rawSalt = !isUndefined(signingAccount)
94
? await signingAccount.signMessage(message)
0 commit comments