Skip to content

Commit

Permalink
fix: throw
Browse files Browse the repository at this point in the history
  • Loading branch information
gllm-dev committed May 16, 2024
1 parent 525e6aa commit 3763ee9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfort/openfort-js",
"version": "0.6.16",
"version": "0.6.17",
"description": "",
"author": "Openfort",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion src/clients/iframe-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class IframeClient {
resolve(response as T);
} else if (response instanceof ErrorResponse) {
if (response.error === NOT_CONFIGURED_ERROR) {
throw new NotConfiguredError();
reject(new NotConfiguredError());
}
reject(new UnknownResponseError(response.error));
} else {
Expand Down Expand Up @@ -192,6 +192,7 @@ export class IframeClient {
response = await this.waitForResponse<SignResponse>(uuid);
} catch (e) {
if (e instanceof NotConfiguredError) {
console.log("Not configured, reconfiguring...");
await this.configure();
return this.sign(message, requireArrayify, requireHash);
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = "0.6.16";
export const VERSION = "0.6.17";
export const PACKAGE = "@openfort/openfort-js";

0 comments on commit 3763ee9

Please sign in to comment.