Merge remote-tracking branch 'origin/main' into feat/cardDeclinedAlert

This commit is contained in:
Carlos Monastyrski
2025-09-10 11:15:17 -03:00
1239 changed files with 54160 additions and 20150 deletions
@@ -32,6 +32,13 @@ export const PmtMethodsTable = () => {
const handleDeletePmtMethodBtnClick = async () => {
if (!currentOrg?.id || !pmtMethodToRemove) return;
if (data?.length === 1) {
createNotification({
type: "error",
text: "You must have at least one payment method"
});
return;
}
try {
await deleteOrgPmtMethod.mutateAsync({
organizationId: currentOrg.id,