Skip to content

Commit

Permalink
Staging -> Prod [ Fix "undefined code" error ] (#17)
Browse files Browse the repository at this point in the history
* Fix Github Action Workflow (#7)

* Fix Github Action Workflow

* Debug Publish Script

* verify Build

* Fix Build

* Use Updated Versions

* Update the flag (#9)

* Change Flag To Folder

* Fix Typo

* Update version

* fix JS compilation-issue (#11)

* Update

* Add __typename to response (#13)

* Staging -> Prod [Fix JS Compilation Issue] (#12)

* Fix Github Action Workflow (#7)

* Fix Github Action Workflow

* Debug Publish Script

* verify Build

* Fix Build

* Use Updated Versions

* Update the flag (#9)

* Change Flag To Folder

* Fix Typo

* Update version

* fix JS compilation-issue (#11)

* Update

* Add __typename to response

* Fix test

* Fix Undefined Error Code
  • Loading branch information
TosinJs authored Mar 20, 2024
1 parent 74ef12b commit 1d29f85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gandalf-network/eyeofsauron",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "dist/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/templates/errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GandalfError extends Error {
}

function handleErrors(error: any): GandalfError {
if (error.response?.errors[0].extensions.code) {
if (error?.response?.errors?.[0]?.extensions?.code) {
switch (error.response.errors[0].extensions.code) {
case "INVALID_SIGNATURE":
return new GandalfError(
Expand Down

0 comments on commit 1d29f85

Please sign in to comment.