@unsource/ui 2.8.11 → 2.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.8.11",
4
+ "version": "2.8.12",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -21,7 +21,7 @@ export declare const verifyPayment: (txId?: string) => Promise<{
21
21
  trx: undefined;
22
22
  status: boolean;
23
23
  message: string;
24
- } | undefined>;
24
+ }>;
25
25
  export declare const submitInviteCode: (code: string) => Promise<void>;
26
26
  export declare const normalizePersian: (text: string) => string;
27
27
  export declare const unNormalizePersian: (text: string) => string;
@@ -169,13 +169,11 @@ export const verifyPayment = async (txId = "") => {
169
169
  const { result } = await useGet(`/transaction/${txId || route.query.txId}`);
170
170
  if (result) {
171
171
  if (["SUCCESS", "ACCEPTED"].includes(result.status || "")) {
172
- if (result.trade) {
173
- return {
174
- trx: result,
175
- status: true,
176
- message: "\u0645\u0639\u0627\u0645\u0644\u0647 \u062B\u0628\u062A \u0634\u062F"
177
- };
178
- }
172
+ return {
173
+ trx: result,
174
+ status: true,
175
+ message: "\u0645\u0639\u0627\u0645\u0644\u0647 \u062B\u0628\u062A \u0634\u062F"
176
+ };
179
177
  } else {
180
178
  return {
181
179
  trx: result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.11",
3
+ "version": "2.8.12",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",