File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const getNonce = async (event) => {
88 try {
99 const { queryStringParameters } = event ;
1010
11- if ( ! queryStringParameters || ! queryStringParameters . address ) {
11+ if ( ! queryStringParameters ? .address ) {
1212 return {
1313 statusCode : 400 ,
1414 body : JSON . stringify ( { message : "Invalid query parameters" } ) ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useQuery } from "@tanstack/react-query";
33import { isUndefined } from "utils/index" ;
44
55export const useUserSettings = ( ) => {
6- const authToken = sessionStorage . getItem ( "auth-token" ) ?. replace ( / \ "/ g, "" ) ;
6+ const authToken = sessionStorage . getItem ( "auth-token" ) ?. replace ( / " / g, "" ) ;
77 const isEnabled = ! isUndefined ( authToken ) ;
88
99 return useQuery ( {
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const FormContactDetails: React.FC<ISettings> = ({ toggleIsSettingsOpen }) => {
8383 } ;
8484 return (
8585 < FormContainer onSubmit = { handleSubmit } >
86- < FormContactContainer >
86+ { /* <FormContactContainer>
8787 <FormContact
8888 contactLabel="Telegram"
8989 contactPlaceholder="@my_handle"
@@ -94,7 +94,7 @@ const FormContactDetails: React.FC<ISettings> = ({ toggleIsSettingsOpen }) => {
9494 validator={TELEGRAM_REGEX}
9595 isEditing={isEditingTelegram}
9696 />
97- </ FormContactContainer >
97+ </FormContactContainer> */ }
9898 < FormContactContainer >
9999 < FormContact
100100 contactLabel = "Email"
@@ -109,7 +109,8 @@ const FormContactDetails: React.FC<ISettings> = ({ toggleIsSettingsOpen }) => {
109109 </ FormContactContainer >
110110
111111 < ButtonContainer >
112- < Button text = "Save" disabled = { ( ! isEditingEmail && ! isEditingTelegram ) || ! emailIsValid || ! telegramIsValid } />
112+ { /* <Button text="Save" disabled={(!isEditingEmail && !isEditingTelegram) || !emailIsValid || !telegramIsValid} /> */ }
113+ < Button text = "Save" disabled = { ! isEditingEmail || ! emailIsValid } />
113114 </ ButtonContainer >
114115 </ FormContainer >
115116 ) ;
Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ const NotificationSettings: React.FC<ISettings> = ({ toggleIsSettingsOpen }) =>
6565 < EnsureChainContainer >
6666 < EnsureChain >
6767 < Container >
68- < StyledA href = { HERMES_TELEGRAM_BOT_URL } target = "_blank" rel = "noreferrer" >
68+ { /* <StyledA href={HERMES_TELEGRAM_BOT_URL} target="_blank" rel="noreferrer">
6969 Subscribe to the Hermes Messenger Bot
7070 <StyledSvg as={TelegramLogo} />
71- </ StyledA >
71+ </StyledA> */ }
7272 < EnsureAuth >
7373 < >
7474 < HeaderNotifs />
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type SettingsToSupabaseData = {
1010
1111export function uploadSettingsToSupabase ( formData : SettingsToSupabaseData ) : Promise < Response > {
1212 // storing token in storage adds double quotes to it, so when its passed as header it becomes `"token"`, so we remove double quotes
13- const authToken = sessionStorage . getItem ( "auth-token" ) ?. replace ( / \ "/ g, "" ) ;
13+ const authToken = sessionStorage . getItem ( "auth-token" ) ?. replace ( / " / g, "" ) ;
1414
1515 return toast . promise < Response , Error > (
1616 fetch ( "/.netlify/functions/update-settings" , {
You can’t perform that action at this time.
0 commit comments