ensure toast shows when export API returns 20n (202, accepted)

This commit is contained in:
Josh Hawkins 2026-04-30 18:15:03 -05:00
parent 8131245777
commit ebb3d7fb75
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ export default function ReviewCard({
{ playback: "realtime" },
)
.then((response) => {
if (response.status == 200) {
if (response.status < 300) {
toast.success(t("export.toast.success"), {
position: "top-center",
action: (

View File

@ -278,7 +278,7 @@ export default function EventView({
{ playback: "realtime", image_path: review.thumb_path },
)
.then((response) => {
if (response.status == 200) {
if (response.status < 300) {
toast.success(
t("export.toast.success", { ns: "components/dialog" }),
{

View File

@ -357,7 +357,7 @@ export default function MotionSearchView({
},
)
.then((response) => {
if (response.status == 200) {
if (response.status < 300) {
toast.success(
t("export.toast.success", { ns: "components/dialog" }),
{