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.
2 parents 3080c8f + 89848ea commit a130a6aCopy full SHA for a130a6a
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 || import.meta.env.REACT_APP_SHUTTER_API.trim() === "") {
89
+ console.error("REACT_APP_SHUTTER_API environment variable is not set or is empty");
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