Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't confirm that verification was saved if it wasn't #215

Open
RafDevX opened this issue Dec 21, 2024 · 0 comments · May be fixed by #225
Open

Don't confirm that verification was saved if it wasn't #215

RafDevX opened this issue Dec 21, 2024 · 0 comments · May be fixed by #225
Labels

Comments

@RafDevX
Copy link
Member

RafDevX commented Dec 21, 2024

Fetch promises don't auto-reject for non-200, we need to check ourselves

fetch('/admin/expense/' + expense.id + '/verification/', {
method: 'POST',
credentials: 'same-origin',
body: form
})
.then(res => {
console.log(res)
return res.text()
})
.then(res => {
this.expenses[idx].verification = expense.verificationString
})

@RafDevX RafDevX added bug bra första ärende Beginner friendly labels Dec 21, 2024
This was referenced Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant