1
0
Fork 0
mirror of https://github.com/IRS-Public/direct-file.git synced 2025-06-28 04:25:52 +00:00
This commit is contained in:
prycey 2025-06-04 19:31:10 -07:00 committed by GitHub
commit 7c40a944f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View file

@ -22,10 +22,6 @@ const PreviewTaxReturns = () => {
const handlePreview = useCallback(async () => { const handlePreview = useCallback(async () => {
const url = `${import.meta.env.VITE_BACKEND_URL}v1/taxreturns/${currentTaxReturnId}/preview`; const url = `${import.meta.env.VITE_BACKEND_URL}v1/taxreturns/${currentTaxReturnId}/preview`;
const alertKey = SystemAlertKey.PREVIEW; const alertKey = SystemAlertKey.PREVIEW;
const browserLanguage: string = navigator.language;
// TODO: navigator.platform is deprecated: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
const platform: string = navigator.platform ? navigator.platform : ``;
const timeZoneOffset: number = new Date().getTimezoneOffset();
const facts = JSON.parse(factGraph.toJSON()); const facts = JSON.parse(factGraph.toJSON());
try { try {

View file

@ -10,10 +10,6 @@ import { TaxReturn } from '../../../types/core.js';
* then trigger any logging on this fetch. * then trigger any logging on this fetch.
*/ */
export async function taxReturnCreate(): Promise<TaxReturn> { export async function taxReturnCreate(): Promise<TaxReturn> {
const browserLanguage: string = navigator.language;
// TODO: navigator.platform is deprecated: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
const platform: string = navigator.platform ? navigator.platform : ``;
const timeZoneOffset: number = new Date().getTimezoneOffset();
const year = Number.parseInt(CURRENT_TAX_YEAR); const year = Number.parseInt(CURRENT_TAX_YEAR);
return await save<TaxReturn>(`${import.meta.env.VITE_BACKEND_URL}v1/taxreturns`, { return await save<TaxReturn>(`${import.meta.env.VITE_BACKEND_URL}v1/taxreturns`, {