Skip to content

Commit

Permalink
fixup! Refactor configuration API to use SERVER_TLDRAW_2_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWaysDP committed Oct 18, 2024
1 parent c22c748 commit 6afe1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configuration/api/api.configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getConfigOptions = async (): Promise<{

const data: { SERVER_TLDRAW_2_ENABLED: string } = await response.json();
connectionOptions.SERVER_TLDRAW_2_ENABLED =
data.SERVER_TLDRAW_2_ENABLED === "true";
data.SERVER_TLDRAW_2_ENABLED.toLowerCase() === "true";
} catch (error) {
setErrorData(HttpStatusCode.InternalServerError, "error.500");
redirectToErrorPage();
Expand Down

0 comments on commit 6afe1b0

Please sign in to comment.