Skip to content

Commit

Permalink
Merge pull request #29 from beclab/fix/user
Browse files Browse the repository at this point in the history
fix: check user resource details
  • Loading branch information
icebergtsn authored Aug 14, 2024
2 parents 678ba08 + 7af0c51 commit d9bc1df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/stores/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ export const useUserStore = defineStore('userStore', {
* @param app
*/
_userResourcePreflight(app: AppStoreInfo): boolean {
if (!this.userResource) {
if (
!this.userResource ||
!this.userResource.cpu ||
!this.userResource.memory
) {
app.preflightError.push(
i18n.global.t('error.failed_to_get_user_resource')
);
Expand Down

0 comments on commit d9bc1df

Please sign in to comment.