ссылки на pdf файлы получают сейчасшний домен

This commit is contained in:
Nastya 2024-01-26 04:40:01 +03:00
parent c485781800
commit d866b41007

@ -22,6 +22,12 @@ export async function verification(
withCredentials: true, withCredentials: true,
}) })
verificationResponse.files = verificationResponse.files.map((obj) => {
obj.url = obj.url.replace("https://hub.pena.digital", process.env.REACT_APP_DOMAIN?.toString() || "").replace("https://shub.pena.digital", process.env.REACT_APP_DOMAIN?.toString() || "")
return obj
})
console.log(verificationResponse)
return [verificationResponse] return [verificationResponse]
} catch (nativeError) { } catch (nativeError) {
const [error] = parseAxiosError(nativeError) const [error] = parseAxiosError(nativeError)