From 013e669baedb16c38cdc1dccc8b5b9500bc0304b Mon Sep 17 00:00:00 2001 From: Salvatore Di Salvo Date: Tue, 16 Apr 2024 15:40:36 +0100 Subject: [PATCH] fix: android title & catch error --- .../CreateIdentifier/CreateIdentifier.scss | 8 +++---- .../components/IdentifierStage1.tsx | 23 +++++++++++-------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/ui/components/CreateIdentifier/CreateIdentifier.scss b/src/ui/components/CreateIdentifier/CreateIdentifier.scss index 783bf71d1..abea95926 100644 --- a/src/ui/components/CreateIdentifier/CreateIdentifier.scss +++ b/src/ui/components/CreateIdentifier/CreateIdentifier.scss @@ -58,15 +58,15 @@ ion-modal.create-identifier-modal { overflow: hidden; } - ion-title.md { - margin-left: -3rem; - } - ion-content.scrollable-page-content > *:first-child { padding-top: 1rem; } } + ion-title.md { + margin-left: -3rem; + } + .multisig-share-qr-code { text-align: center; diff --git a/src/ui/components/CreateIdentifier/components/IdentifierStage1.tsx b/src/ui/components/CreateIdentifier/components/IdentifierStage1.tsx index 57fc304bc..db2ba8454 100644 --- a/src/ui/components/CreateIdentifier/components/IdentifierStage1.tsx +++ b/src/ui/components/CreateIdentifier/components/IdentifierStage1.tsx @@ -26,16 +26,21 @@ const IdentifierStage1 = ({ state.newIdentifier.groupMetadata?.groupId; useEffect(() => { - const fetchOobi = async () => { - const oobiValue = await Agent.agent.connections.getKeriOobi( - signifyName, - userName, - groupId - ); - if (oobiValue) { - setOobi(oobiValue); + async function fetchOobi() { + try { + const oobiValue = await Agent.agent.connections.getKeriOobi( + signifyName, + userName, + groupId + ); + if (oobiValue) { + setOobi(oobiValue); + } + } catch (e) { + // @TODO - Error handling. } - }; + } + fetchOobi(); }, [groupId, signifyName, userName]);