Created
July 28, 2026 16:49
-
-
Save tusharf5/67a9bf135851fffb11988a2be1d58d44 to your computer and use it in GitHub Desktop.
bad-func.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function verifyOrder(id: string) { | |
| const response = await api.get(`/orders/${id}`) | |
| if(response.status == 200){ | |
| if(response.data.status == "COMPLETE"){ | |
| return true | |
| }else{ | |
| return false | |
| } | |
| }else{ | |
| throw "failed" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment