Skip to content

Commit

Permalink
fix(DataInterface): fix typo in EmojiVariation interface
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKucal committed May 9, 2018
1 parent 4f327a5 commit 75886bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib/emoji/data/data.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface CompressedEmojiData {
hidden?: string[];
emoticons?: string[];
text?: string;
skin_variations?: EmojiVariaiton[];
skin_variations?: EmojiVariation[];
obsoleted_by?: string;
obsoletes?: string;
}
Expand All @@ -34,7 +34,7 @@ export interface EmojiData {
hidden: string[];
emoticons: string[];
text: string;
skin_variations: EmojiVariaiton[];
skin_variations: EmojiVariation[];
obsoleted_by?: string;
obsoletes?: string;
// search: any;
Expand All @@ -46,7 +46,7 @@ export interface EmojiData {
skin?: Emoji['skin'];
}

export interface EmojiVariaiton {
export interface EmojiVariation {
unified: string;
sheet: [number, number];
hidden?: string[];
Expand Down
4 changes: 2 additions & 2 deletions src/lib/emoji/emoji.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
import {
CompressedEmojiData,
EmojiData,
EmojiVariaiton,
EmojiVariation,
} from './data/data.interfaces';
import { emojis } from './data/emojis';
import { Emoji } from './emoji.component';
Expand Down Expand Up @@ -111,7 +111,7 @@ export class EmojiService {

const skinKey = SKINS[skin - 1];
const variationData = emojiData.skin_variations.find(
(n: EmojiVariaiton) => n.unified.indexOf(skinKey) !== -1,
(n: EmojiVariation) => n.unified.indexOf(skinKey) !== -1,
);

if (!variationData.variations && emojiData.variations) {
Expand Down

0 comments on commit 75886bd

Please sign in to comment.