From 2992fa2a89a1ffa3208d0ed2753bfe557b2176e6 Mon Sep 17 00:00:00 2001 From: pwnpanda Date: Thu, 12 Feb 2026 14:49:54 +0100 Subject: [PATCH] Change from getStoredData to flushStoredData in order to avoid race condition that makes cidl and cidn not register when using the UI --- src/components/customHost/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/customHost/index.tsx b/src/components/customHost/index.tsx index cd24d92..b62c875 100644 --- a/src/components/customHost/index.tsx +++ b/src/components/customHost/index.tsx @@ -3,7 +3,7 @@ import React, { useState } from 'react'; import { ArrowRightIcon, CloseIcon, LoaderIcon } from '@/components/icons'; import { register } from '@/lib'; -import { defaultStoredData, getStoredData, writeStoredData } from '@/lib/localStorage'; +import { defaultStoredData, flushStoredData, getStoredData, writeStoredData } from '@/lib/localStorage'; import './styles.scss'; interface CustomHostP { @@ -61,6 +61,7 @@ const CustomHost = ({ handleCloseDialog }: CustomHostP) => { correlationIdLength: correlationIdLengthInputValue, correlationIdNonceLength: correlationIdNonceLengthInputValue, }); + flushStoredData(); register( inputValue.replace(/(^\w+:|^)\/\//, ''), tokenInputValue,