👽 added async to api calls
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
14c24ae97e
commit
f417e575ea
8 changed files with 17 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
export const postBugData = (bugText: string) => {
|
||||
export const postBugData = async (bugText: string) => {
|
||||
let url = "http://localhost:8080/submitbug";
|
||||
|
||||
const response = fetch(url, {
|
||||
|
|
|
|||
Reference in a new issue