Skip to content

Commit

Permalink
fix: show PushPermissionDialog for 403 error in pushResult
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasBuchfink committed May 31, 2024
1 parent e7d70de commit 13f1e0a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export const Gitfloat = () => {
sucess: pushResult.error === undefined,
})

if (pushResult.error?.data?.statusCode === 403) {
// @ts-expect-error – unknown type error for cause
if (pushResult.error?.cause?.data.statusCode === 403) {
pushPermissionDialog.show()
return
}
Expand Down

0 comments on commit 13f1e0a

Please sign in to comment.