Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/store/components/app-integration/ConnectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function ConnectModal({ open, onOpenChange }: ConnectModalProps) {
return
}

if (currentStore?.id) {
if (currentStore?.storeId) {
try {
const encryptedKey = await encryptApiKey(
apiKey,
Expand All @@ -94,15 +94,15 @@ export function ConnectModal({ open, onOpenChange }: ConnectModalProps) {

// Actualizamos la tienda con la API Key encriptada de Master Shop
const result = await updateUserStore({
id: currentStore.id,
storeId: currentStore.storeId,
mastershopApiKey: encryptedKey,
})

if (result) {
setStatus('success')
setStep(3)

checkMasterShopApiKey(currentStore.id)
checkMasterShopApiKey(currentStore.storeId)
} else {
setStatus('error')
setErrorMessage('No se pudo guardar la configuración. Por favor intenta nuevamente.')
Expand Down
Loading