fix: loading invoices on hard reload

This commit is contained in:
Kevin Grüneberg committed 2023-07-18 14:01:37 +02:00
1 parent 7ef85772c0
commit c8f89be2cf
1 file changed
+3 -1
@@ -27,6 +27,8 @@ const Invoices: FC<Props> = ({ projectRef }) => {
const offset = (page - 1) * PAGE_LIMIT
useEffect(() => {
if (!projectRef) return
let cancel = false
const page = 1
@@ -48,7 +50,7 @@ const Invoices: FC<Props> = ({ projectRef }) => {
return () => {
cancel = true
}
}, [])
}, [projectRef])
const fetchInvoices = async (page: number) => {
setLoading(true)