Skip to content

Commit 71941a2

Browse files
authored
Merge pull request Expensify#68090 from mkzie2/mkzie2-issue/68072
fix: RBR appears when send image offline and back to online
2 parents ddc915f + d958277 commit 71941a2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/libs/prepareRequestPayload/index.native.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ const prepareRequestPayload: PrepareRequestPayload = (command, data, initiatedOf
2020

2121
if ((key === 'receipt' || key === 'file') && initiatedOffline) {
2222
const {uri: path = '', source} = value as File;
23+
if (!source) {
24+
validateFormDataParameter(command, key, value);
25+
formData.append(key, value as string | Blob);
2326

27+
return Promise.resolve();
28+
}
2429
return readFileAsync(source, path, () => {}).then((file) => {
2530
if (!file) {
2631
return;

0 commit comments

Comments
 (0)