From 6da0f82ddda8f453138f4f6d304ec98b7815b0dc Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Fri, 29 May 2020 12:38:26 -0400 Subject: [PATCH] Avoid Task.Result usage (#930) --- src/App/Pages/Settings/ExportVaultPageViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Settings/ExportVaultPageViewModel.cs b/src/App/Pages/Settings/ExportVaultPageViewModel.cs index 11583f740..f51675daa 100644 --- a/src/App/Pages/Settings/ExportVaultPageViewModel.cs +++ b/src/App/Pages/Settings/ExportVaultPageViewModel.cs @@ -100,10 +100,10 @@ namespace Bit.App.Pages { try { - var data = _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key); + var data = await _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key); var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key; _defaultFilename = _exportService.GetFileName(null, fileFormat); - _exportResult = Encoding.ASCII.GetBytes(data.Result); + _exportResult = Encoding.ASCII.GetBytes(data); if (!_deviceActionService.SaveFile(_exportResult, null, _defaultFilename, null)) {