NextJS - Can you use a return from an api in a conditional?

前端 未结 0 992
暗喜
暗喜 2021-01-15 09:57

I have a change password function that hits this api for verification and I want to display an error if the current password is incorrect.

Any direction on how to go

相关标签:
回答
  • 消灭零回复
提交回复
热议问题