stop showing duplicate support secret toasts
This commit is contained in:
parent
3c54653646
commit
0cdb6d0da1
1 changed files with 2 additions and 1 deletions
|
@ -244,8 +244,9 @@ function useSupportSetup() {
|
|||
React.useEffect(() => {
|
||||
const params = new URLSearchParams(location.search);
|
||||
const supportSecret = params.get("supportSecret");
|
||||
const existingSupportSecret = localStorage.getItem("supportSecret");
|
||||
|
||||
if (supportSecret) {
|
||||
if (supportSecret && supportSecret !== existingSupportSecret) {
|
||||
localStorage.setItem("supportSecret", supportSecret);
|
||||
|
||||
toast({
|
||||
|
|
Loading…
Reference in a new issue