From 2731ee8afeb46f5fe7926bc76bce807da45cdf30 Mon Sep 17 00:00:00 2001 From: mucahit Date: Mon, 4 Jul 2022 12:23:56 +0100 Subject: [PATCH] fix: Update readme with the new reject type --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 129b144..5a58bef 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,9 @@ function App() { .reject((error) => { // You MUST handle the reject because once the user closes the modal, peraWallet.connect() promise will be rejected. // For the async/await syntax you MUST use try/catch + if (error?.data?.type !== "CONNECT_MODAL_CLOSED") { + // log the necessary errors + } }); }