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 a8942cd commit 89848eaCopy full SHA for 89848ea
web/src/pages/Cases/CaseDetails/Voting/Shutter/Commit.tsx
@@ -85,8 +85,8 @@ 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");
+ if (!import.meta.env.REACT_APP_SHUTTER_API || import.meta.env.REACT_APP_SHUTTER_API.trim() === "") {
+ 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 };
0 commit comments